package com.ecjtu.stadiumre_servations.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ecjtu.stadiumre_servations.entity.domain.Booking;
import com.ecjtu.stadiumre_servations.entity.domain.User;
import com.ecjtu.stadiumre_servations.entity.dto.LoginDTO;
import com.ecjtu.stadiumre_servations.entity.dto.UserDTO;
import com.ecjtu.stadiumre_servations.response.Result;

public interface UserService extends IService <User>{
    Result register (UserDTO userDTO);
    Result login(LoginDTO loginDTO);
    Result updatePassword(String oldPassword,String newPassword);
    Result updatePhone(String oldPhone,String newPhone);
//    /**
//     *
//     *  分页查看我的所有预约
//     */
//    Result myBookings(Page<Booking> Page);

}
